package xyz.liuyuhe.StudySpring.ch3;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainApp_xml {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("ch3/Beans_xml.xml");
        HelloWorld helloWorld = (HelloWorld)context.getBean("helloWorld");
        
        System.out.println(helloWorld.getMessage());
        context.close();
    }
}